package com.akkainaction.helloactor.become;

import akka.actor.ActorRef;
import akka.actor.ActorSystem;
import akka.actor.Props;
import com.akkainaction.helloactor.become.actor.BecomeActor;

public class TestBecome {

    public static void main(String[] args) {
        ActorSystem system = ActorSystem.create("sys");
        ActorRef actorRef = system.actorOf(Props.create(BecomeActor.class), "becomeActor");
        actorRef.tell("hello become", ActorRef.noSender());
        actorRef.tell("hello become", ActorRef.noSender());
        actorRef.tell("hello become", ActorRef.noSender());
        actorRef.tell("hello become", ActorRef.noSender());
        actorRef.tell("hello become", ActorRef.noSender());
    }
}
